import Vue from 'vue'
import Router from 'vue-router'
import Home from '../pages/home/Home'
import Goods from '../pages/goods/Goods'
import Ratings from '../pages/ratings/Ratings'
import Sells from '../pages/sells/Sells'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    name: 'Home',
    component: Home,
    children: [{
      path: '/Goods',
      name: 'Goods',
      component: Goods
    }, {
      path: '/Ratings',
      name: 'Ratings',
      component: Ratings
    }, {
      path: '/Sells',
      name: 'Sells',
      component: Sells
    }]
  }]
})
